<!--
 * @title: 自定义Routeview组件
 * @author: andy.ten@tom.com & xukaixing@hotmail.com
 * @Date: 2022-03-26 12:50:51
 * @LastEditors: andy.ten@tom.com
 * @LastEditTime: 2022-03-31 10:51:52
 * @version: 1.0.1
 * @copyright: copyright (c) 2022 andyten
 *  node: you can not copy and/or use and/or modify this program free,
 *  please reserve the segment above.Please mail me if you have any question.
-->

<script>
import store from '@/store';

export default {
  name: 'HtRouterView',
  computed: {
    cachedViews() {
      return store.state.tagsView.cachedViews;
    },
    key() {
      return this.$route.fullPath;
    }
  },
  render() {
    return (
      <keep-alive include={this.cachedViews}>
        <router-view key={this.key} />
      </keep-alive>
    );
  }
};
</script>
